﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace AngularRotasTemplates.Models
{
    [Table("Cliente")]
    public class Cliente
    {
        public int Id { get; set; }
        [Required]
        public string Nome { get; set; }
        [Required]
        [StringLength(2)]
        public string Estado { get; set; }
        [RegularExpression(@"\d{5}-\d{3}")]
        public string Cep { get; set; }
    }
}